package com.hinnotek.amoeba.ui.activity.old

import android.os.Bundle
import android.view.View
import com.lee.common.base.BaseActivity
import com.hinnotek.amoeba.R
import com.hinnotek.amoeba.databinding.ActivityRdListBinding
import com.hinnotek.amoeba.utilities.IntentUtils

class RDListActivity : BaseActivity<ActivityRdListBinding>() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_rd_list)
        setLeftVisible(true)
        setTitle("研发")

    }

    override fun initVew() {
        bindingView.rlRdPurchaseRequisition.setOnClickListener { v: View? ->
            val bundle = Bundle()
            bundle.putString("purchase_type_to", "rD")
            IntentUtils.startActivity(mContext, SellPurchaseRequisitionActivity::class.java, bundle)
        }
        bindingView.rlRdProject.setOnClickListener { v: View? ->
            IntentUtils.startActivity(
                mContext,
                RDProjectListActivity::class.java
            )
        }
        bindingView.rlRdProject.setOnClickListener { v: View? ->
            val bundle1 = Bundle()
            bundle1.putInt("applyUserType", 3)
            bundle1.putString("purchase_type_to", "rD")
            IntentUtils.startActivity(mContext, WipeOutListActivity::class.java, bundle1)
        }
    }

    override fun setData() {}
}